/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author dukynguyen
 */
@Entity
@Table(name = "FAQ", catalog = "eProjectNational_Level_Paper", schema = "dbo")
@NamedQueries({
    @NamedQuery(name = "Faq.findAll", query = "SELECT f FROM Faq f"),
    @NamedQuery(name = "Faq.findByFaqid", query = "SELECT f FROM Faq f WHERE f.faqid = :faqid"),
    @NamedQuery(name = "Faq.findByIDelete", query = "SELECT f FROM Faq f WHERE f.iDelete = :iDelete")})
public class Faq implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue
    @Basic(optional = false)
    @Column(name = "FAQID", nullable = false)
    private Integer faqid;
    @Lob
    @Column(name = "FAQ_Question", length = 1073741823)
    private String fAQQuestion;
    @Lob
    @Column(name = "FAQ_Answer", length = 1073741823)
    private String fAQAnswer;
    @Column(name = "iDelete")
    private Boolean iDelete;

    public Faq() {
    }

    public Faq(Integer faqid) {
        this.faqid = faqid;
    }

    public Integer getFaqid() {
        return faqid;
    }

    public void setFaqid(Integer faqid) {
        this.faqid = faqid;
    }

    public String getFAQQuestion() {
        return fAQQuestion;
    }

    public void setFAQQuestion(String fAQQuestion) {
        this.fAQQuestion = fAQQuestion;
    }

    public String getFAQAnswer() {
        return fAQAnswer;
    }

    public void setFAQAnswer(String fAQAnswer) {
        this.fAQAnswer = fAQAnswer;
    }

    public Boolean getIDelete() {
        return iDelete;
    }

    public void setIDelete(Boolean iDelete) {
        this.iDelete = iDelete;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (faqid != null ? faqid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Faq)) {
            return false;
        }
        Faq other = (Faq) object;
        if ((this.faqid == null && other.faqid != null) || (this.faqid != null && !this.faqid.equals(other.faqid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Entity.Faq[faqid=" + faqid + "]";
    }

}
